package com.lehoon.tomato.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wang
 * @since 2020-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserBankcard extends Model<UserBankcard> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 银行卡号
     */
    private String cardNum;

    private Integer userId;

    /**
     * 银行编号
     */
    private String bankNo;

    /**
     * 银行名称
     */
    private String bankName;

    private String image;

    /**
     * 默认银行卡：1）是，0）否
     */
    private Boolean defaultCard;

    private Integer bankId;

    private String city;

    private String address;

    private String username;

    /**
     * 支行名称
     */
    private String subbranchName;

    /**
     * 支行编号
     */
    private String subbranchNo;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
